package product;

import java.sql.*;
import java.util.Scanner;

public class OracleJdbc {
	public Connection conn;
	public OracleJdbc() throws Exception{
		Class.forName("oracle.jdbc.driver.OracleDriver");

		System.out.println("드라이버 로딩 성공...");
		String url = "jdbc:oracle:thin:@192.168.10.4:1521:XE";

		String user = "hr";
		String pwd = "hr";

		conn = DriverManager.getConnection(url, user, pwd);
		System.out.println("DB 연결 성공!");

	}

}
